package com.elsa.server.system.controller;

import java.security.Principal;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
	
	//供Feign调用测试
    @GetMapping("hello")
    public String hello(String name) {
        return "hello" + name;
    }
	@GetMapping("info")
	public String test() {
		return "elsa-server-system";
	}

	@GetMapping("user")
	public Principal currentUser(Principal principal) {
		return principal;
	}
}
